//
//  XCTuiJianDetailModel.m
//  SoundOfNature
//
//  Created by 梁新昌 on 16/3/14.
//  Copyright © 2016年 梁新昌. All rights reserved.
//

#import "XCTuiJianDetailModel.h"

@implementation XCTuiJianDetailModel
-(void)dealloc {
    [_picUrl release];
    [_songList release];
    [super dealloc];
}
- (instancetype)initWithDataSource:(NSDictionary *)dataSource
{
    self = [super initWithDataSource:dataSource];
    if (self) {
        
//        [self setValuesForKeysWithDictionary:dataSource];
        
        NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:0];
        
        for (NSDictionary *dic in self.songList) {
            XCSongListModel *songListModel = [[XCSongListModel alloc] initWithDataSource:dic];
            
            [mutableArray addObject:songListModel];
        }
        self.songList = [NSArray arrayWithArray:mutableArray];
    }
    return self;
}

@end
